<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Author: ckmmd 
// +----------------------------------------------------------------------
use think\facade\Route;

/**
 * Index应用路由
 */

// 首页
Route::group('',function (){
    Route::get('/','index');
})->prefix('Index/');
// 登陆
Route::group('',function (){
    Route::post('/login','index');
    Route::post('/send_verify_code','sendVerifyCode');
})->prefix('Login/');
// 文章编辑器
Route::group('',function (){
    Route::get('/editor','index');
    Route::post('/editor/create','create');
    Route::post('/editor/update','update');
})->prefix('Editor/')->middleware(\app\index\middleware\Login::class);
